<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="收款单" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addCheck()" ng-disabled="!btnPermission.checkAdd"
                        translate translate-attr-title="{{!btnPermission.checkAdd?'无权限执行此操作':''}}">收款</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" translate translate-attr-title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" translate translate-attr-title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.checkExport">
                            <div translate-attr-title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="ids">
                                    <i class="yb-icon ico-export-o"></i><span translate>导出</span> 
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i><span translate>导出全部</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')" translate-attr-title="高级搜索" translate="高级搜索more">
                    </button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" translate translate-attr-placeholder="收款单号"
                            ng-model="condition.checkOrder">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)" translate>搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate> 收款单号</span>：</label>
                        <input type="text" ng-model="condition.checkOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>业务单号</span>：</label>
                        <input type="text" ng-model="condition.billNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>客户名称</span>：</label>
                        <input type="text" ng-model="condition.purchaseOrgName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>结算方式</span>：</label>
                        <select ng-model="condition.settleType" class="form-control"
                            ng-options="item.id as (item.name | translate) for item  in settleTypeList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span translate>收款时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showCreateDateStart = !showCreateDateStart"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="showCreateDateStart" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showCreateDateEnd = !showCreateDateEnd"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="showCreateDateEnd" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>经办人</span>：</label>
                        <input type="text" ng-model="condition.operatorName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>是否红冲</span>：</label>
                        <select ng-model="condition.isReverse" class="form-control"
                            ng-options="item.id as (item.name | translate) for item in isReverseList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>是否开票</span>：</label>
                        <select ng-model="condition.invoiceStatus" class="form-control"
                            ng-options="item.id as item.name for item in isInvoiceList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span translate>审核状态</span>：</label>
                        <select ng-model="condition.auditStatus" class="form-control"
                            ng-options="item.id as item.name for item in auditStatusList">
                            <option value="" translate>请选择</option>
                        </select>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center th-check border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allChecked" yb-click="selectAll()"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed"  width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.billFixedWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        ng-show="(!!itemCol.isShow && !itemCol.isFixed)||(!!itemCol.isSap&&!isZHJCH)"  width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <div>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="editCheck(item)"
                                                ng-disabled="item.isReverse === 1 || item.auditStatus==1 || !btnPermission.checkEdit"
                                                translate translate-attr-title="{{!btnPermission.checkEdit?'无权限执行此操作':''}}">编辑
                                            </button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="redFlush(item)"
                                                ng-disabled="item.isReverse === 1 || !btnPermission.checkReverse"
                                                translate translate-attr-title="{{!btnPermission.checkReverse?'无权限执行此操作':''}}">红冲
                                            </button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-disabled="item.auditStatus==1"
                                                ng-click="go2checkData(item)"
                                                translate>审核</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="printBill(item)" translate>打印</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.cueRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}"
                                        ng-show="(!!itemCol.isShow && !itemCol.isFixed)||(!!itemCol.isSap&&!isZHJCH)">
                                        <div ng-switch="itemCol.type">
                                            <div ng-switch-when="click">
                                                <a class="btn-operate m-r-xs"
                                                    ng-class="{'danger-color': !!item.isReverse}"
                                                    ng-click="tdClick(item, itemCol.clickFn)">
                                                    {{item[itemCol.dataField]}}
                                                </a>
                                            </div>
                                            <div ng-switch-default class="spill-dots">
                                                <span ng-class="{'danger-color': !!item.isReverse}">{{item[itemCol.dataField]}}</span>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allChecked" yb-check-name="全选"
                    yb-click="selectAll()"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <!-- 新增、编辑 -->
        <div tab heading="{{tabFlag.name}}" active="activeFlag[1]" ng-if="activeFlag[1] || sourceFlag === 1">
            <div class="pos-a-full shuttle-box left" style="right: 65%;top: 35px;">
                <div class="box-head clearfix">
                    <span class="font-14" translate>
                        收款信息
                    </span>
                </div>
                <div class="pos-a-full box-body has-head has-foot border-t">
                    <form name="checkForm" class="main-wrap form-horizontal form-up-tb p-t clearfix" novalidate>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><i>*</i><span translate>客户名称</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="purchaseOrgName" class="form-control light-bg"
                                    ng-model="orderObj.purchaseOrgName" ng-click="selectDealer()"
                                    required yb-focus readonly required yb-focus readonly ng-disabled="{{tabFlag.type==1}}"
                                    translate translate-attr-placeholder="请选择">

                                <div class="msg-block"
                                    ng-show="checkForm.purchaseOrgName.$dirty || (checkForm.purchaseOrgName.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="checkForm.purchaseOrgName.$error.required && !checkForm.purchaseOrgName.focused">
                                        <div class="msg-triangle"></div>
                                        <span translate>必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><span translate>客户编码</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="dealerCode" disabled class="form-control"
                                    ng-model="orderObj.dealerCode" maxlength="200">
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><span translate>付款方式</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <select ng-model="orderObj.payType" class="form-control"
                                    ng-options="item.id as (item.name | translate) for item in payTypeList">
                                    <option value="" translate>请选择</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group col-xs-12" ng-if="isJCH">
                            <label class="col-xs-3 control-label"><i>*</i><span translate>回款类别</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <select name="reMoneyType" ng-model="orderObj.reMoneyType" class="form-control" required>
                                    <option value="" translate>请选择</option>
                                    <option value="0" translate>新业务首付款</option>
                                    <option value="1" translate>新业务全款</option>
                                    <option value="2" translate>分期回款</option>
                                    <option value="3" translate>逾期清收</option>
                                </select>

                                <div class="msg-block"
                                    ng-show="checkForm.reMoneyType.$dirty || (checkForm.reMoneyType.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="checkForm.reMoneyType.$error.required && !checkForm.reMoneyType.focused">
                                        <div class="msg-triangle"></div>
                                        <span translate>必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12" ng-if="orderObj.purchaseOrgName&&orderObj.prePayPrice">
                            <label class="col-xs-3 control-label"><span translate>预收款</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{orderObj.prePayPrice}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><i>*</i><span translate>结算方式</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left clearfix">
                                <input type="radio" class="m-r-lg pull-left" yb-radio yb-click="settleTypeClick()" yb-disabled="tabFlag.type==1"
                                    ng-model="orderObj.settleType" value="0" yb-radio-name="按订单结算">
                                <input type="radio" class="m-r-lg pull-left" yb-radio yb-click="settleTypeClick()" yb-disabled="tabFlag.type==1"
                                    ng-model="orderObj.settleType" value="1" yb-radio-name="按金额结算">
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><i>*</i><span translate>收款金额</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="totalPrice" class="form-control" ng-model="orderObj.totalPrice"
                                    yb-number-input negative="true" ng-change="totalPriceChange()"
                                    ng-disabled="!orderObj.settleType" yb-focus
                                    translate translate-attr-placeholder="{{orderObj.settleType ? '请输入收款金额' : '请选择订单'}}" max="9999999999.999"
                                    disable-decimal="false" decimal-places="2">

                                <div class="msg-block" ng-show="checkForm.totalPrice.$dirty || submitted">
                                    <div class="error-msg"
                                        ng-if="(!orderObj.totalPrice || orderObj.totalPrice == 0) && !checkForm.totalPrice.focused">
                                        <div class="msg-triangle"></div>
                                        <span translate>收款金额不能为空和0</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><span translate>优惠金额</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="discountPrice" class="form-control"
                                    ng-change="discountPriceChange()" ng-model="orderObj.discountPrice" yb-number-input
                                    max="9999999999.999" disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-12" ng-if="orderObj.purchaseOrgName&&orderObj.prePayPrice">
                            <label class="col-xs-3 control-label"><span translate>预收款扣减</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input yb-number-input type="text" name="advancePayPrice" class="form-control"
                                    disable-decimal="false" ng-change="prePayPriceChange()"
                                    ng-model="orderObj.advancePayPrice" decimal-places="2" max="9999999999.999">
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><span translate>实际收款金额</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="realPrice" class="form-control" ng-disabled="true"
                                    ng-model="orderObj.realPrice" yb-number-input max="9999999999.999"
                                    disable-decimal="false" decimal-places="2">
                            </div>
                        </div>


                        <div class="form-group col-xs-12" ng-if="isNY || isJCH">
                            <label class="col-xs-3 control-label"><i>*</i><span translate>代理商</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="agentName" class="form-control light-bg"
                                    ng-model="orderObj.agentName" ng-click="selectAgent()"
                                    required yb-focus readonly required yb-focus readonly
                                    translate translate-attr-placeholder="请选择">

                                <div class="msg-block"
                                    ng-show="checkForm.agentName.$dirty || (checkForm.agentName.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="checkForm.agentName.$error.required && !checkForm.agentName.focused">
                                        <div class="msg-triangle"></div>
                                        <span translate>必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12" ng-if="isNY || isJCH">
                            <label class="col-xs-3 control-label"><i>*</i>代表处：</label>
                            <div class="col-xs-8 wrapper-none">
                                <div enterprise-dictionary ng-model="orderObj.agency" sel-key="Aency"
                                     sel-code="orderObj.agencyCode"
                                     option-changed="pucrchaseOrderTypeChanged(orderObj.purchaseOrdType)">
                                    <input type="text" name="agency" class="form-control light-bg" ng-model="orderObj.agency"
                                           placeholder="请选择" required readonly yb-focus>
                                </div>
                                <div class="msg-block" ng-show="checkForm.agency.$dirty || (checkForm.agency.$invalid && submitted)">
                                    <div class="error-msg" ng-if="checkForm.agency.$error.required && !checkForm.agency.focused">
                                        <div class="msg-triangle"></div>
                                        必填项，请填写
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12" ng-if="isNY || isJCH">
                            <label class="col-xs-3 control-label"><i>*</i>产品组：</label>
                            <div class="col-xs-8 wrapper-none">
                                <div enterprise-dictionary ng-model="orderObj.productGroup" sel-key="Product_group"
                                     sel-code="orderObj.productGroupCode"
                                     option-changed="pucrchaseOrderTypeChanged(orderObj.purchaseOrdType)">
                                    <input type="text" name="productGroup" class="form-control light-bg" ng-model="orderObj.productGroup"
                                           placeholder="请选择" required readonly yb-focus>
                                </div>
                                <div class="msg-block" ng-show="checkForm.productGroup.$dirty || (checkForm.productGroup.$invalid && submitted)">
                                    <div class="error-msg" ng-if="checkForm.productGroup.$error.required && !checkForm.productGroup.focused">
                                        <div class="msg-triangle"></div>
                                        必填项，请填写
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12" ng-if="isNY || isJCH">
                            <label class="col-xs-3 control-label"><i>*</i>回款类型：</label>
                            <div class="col-xs-8 wrapper-none">
                                <div enterprise-dictionary ng-model="orderObj.collectionType" sel-key="Collection_Type"
                                     sel-code="orderObj.collectionTypeCode"
                                     option-changed="pucrchaseOrderTypeChanged(orderObj.purchaseOrdType)">
                                    <input type="text" name="collectionType" class="form-control light-bg" ng-model="orderObj.collectionType"
                                           placeholder="请选择" required readonly yb-focus>
                                </div>
                                <div class="msg-block" ng-show="checkForm.collectionType.$dirty || (checkForm.collectionType.$invalid && submitted)">
                                    <div class="error-msg" ng-if="checkForm.collectionType.$error.required && !checkForm.collectionType.focused">
                                        <div class="msg-triangle"></div>
                                        必填项，请填写
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12" ng-if="isNY || isJCH">
                            <label class="col-xs-3 control-label"><span translate>回款单位</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="collectionOrg" class="form-control"
                                    ng-model="orderObj.collectionOrg">    
                                <div class="msg-block" ng-show="checkForm.collectionOrg.$dirty || (checkForm.collectionOrg.$invalid && submitted)">
                                    <div class="error-msg" ng-if="checkForm.collectionOrg.$error.required && !checkForm.collectionOrg.focused">
                                        <div class="msg-triangle"></div>
                                            必填项，请填写
                                    </div>
                                </div>        
                            </div>
                        </div>
                        <div class="form-group col-xs-12" ng-if="isNY || isJCH">
                            <label class="col-xs-3 control-label"><i>*</i>收款银行：</label>
                            <div class="col-xs-8 wrapper-none">
                                <div enterprise-dictionary ng-model="orderObj.receivingBank" sel-key="Receiving_Bank"
                                     sel-code="orderObj.receivingBankCode"
                                     option-changed="pucrchaseOrderTypeChanged(orderObj.purchaseOrdType)">
                                    <input type="text" name="receivingBank" class="form-control light-bg" ng-model="orderObj.receivingBank"
                                           placeholder="请选择" required readonly yb-focus>
                                </div>
                                <div class="msg-block" ng-show="checkForm.receivingBank.$dirty || (checkForm.receivingBank.$invalid && submitted)">
                                    <div class="error-msg" ng-if="checkForm.receivingBank.$error.required && !checkForm.receivingBank.focused">
                                        <div class="msg-triangle"></div>
                                        必填项，请填写
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><i>*</i><span translate>经办人</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="operatorName" class="form-control light-bg"
                                    ng-model="orderObj.operatorName" ng-click="selectOperator()" required yb-focus
                                    readonly translate translate-attr-placeholder="请选择">

                                <div class="msg-block"
                                    ng-show="checkForm.operatorName.$dirty || (checkForm.operatorName.$invalid && submitted)">
                                    <div class="error-msg"
                                        ng-if="checkForm.operatorName.$error.required && !checkForm.operatorName.focused">
                                        <div class="msg-triangle"></div>
                                        <span translate>必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><span translate>打款时间</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control date-picker" ng-model="orderObj.paymentDate"
                                    datepicker-popup="{{'yyyy-MM-dd'}}"
                                    ng-click="showCreateDateStart = !showCreateDateStart" is-open="showCreateDateStart"
                                    close-text="关闭" modal-size="small" readonly>
                            </div>
                        </div>
                        <div class="form-group col-xs-12" ng-if="!isNY || !isJCH">
                            <label class="col-xs-3 control-label"><span translate>打款账号</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="paymentAccount" class="form-control"
                                    ng-model="orderObj.paymentAccount" maxlength="50">
                            </div>
                        </div>
                        <div class="form-group col-xs-12" ng-if="!isNY || !isJCH">
                            <label class="col-xs-3 control-label"><span translate>打款银行</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="paymentBank" class="form-control"
                                    ng-model="orderObj.paymentBank">
                            </div>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-3 control-label"><span translate>备注</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <textarea type="text" name="note" class="form-control full" ng-model="orderObj.note"
                                    maxlength="200"></textarea>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix">
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(checkForm.$valid)" translate>保存</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                </div>
            </div>
            <div class="pos-a-full shuttle-box right" style="left: 35%;top: 35px;bottom: 10px">
                <div class="box-head clearfix">
                    <span class="font-14 pull-left" translate>收款单据</span>
                    <input type="text" class="form-control saleNo-input pull-right" translate translate-attr-placeholder="销售订单号"
                         ng-model="saleNos.saleNo">
                    <button class="saleNo-button pull-right btn btn-default" ng-click="searchSaleNo()" translate>搜索</button>
                </div>
                <div class="pos-a-full box-body has-head border-t ">
                    <div yb-table-fixed class="table-fixed-wrap " style="top: 15px;left: 0 ">
                        <div class="th-scroll-x ">
                            <table class="table-fixed border-none " width="{{addTableInfo.tableConfig.scrollWidth}} ">
                                <thead>
                                    <tr>
                                        <th width="40" class="text-center th-check border-l-none ">
                                            <div yb-check-box yb-checked="addTableInfo.markInfo.allChecked"
                                                yb-disabled="orderObj.settleType || tabFlag.type==1" yb-click="addTableInfo.selectAll() ">
                                            </div>
                                        </th>
                                        <th ng-repeat="itemCol in addTableInfo.tableConfig.tableCol track by $index "
                                            width="{{itemCol.width}} "
                                            ng-show="!!itemCol.isShow||(itemCol.isSap&&!isZHJCH) ">
                                            <div yb-thead-operate ng-model="itemCol "
                                                target-width="addTableInfo.tableConfig.scrollWidth "></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="addTableInfo.dataList.length> 0">
                            <table class="table-fixed border-none" width="{{addTableInfo.tableConfig.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in addTableInfo.dataList track by $index"
                                        ng-class="{'row-selected': $index === addTableInfo.markInfo.curRow}"
                                        ng-click="addTableInfo.selectRow($index)">
                                        <td width="40" class="text-center border-l-none">
                                            <div yb-check-box yb-checked="item.isChecked"
                                                yb-disabled="orderObj.settleType || tabFlag.type==1"
                                                yb-click="addTableInfo.selectSingle(item)"></div>
                                        </td>
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in addTableInfo.tableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-show="!!itemCol.isShow||(itemCol.isSap&&!isZHJCH)"
                                            title="{{item[itemCol.dataField]}}"
                                            ng-style="{'overflow':item.chpErrMsg?'unset':'hidden'}">
                                            <div ng-switch="itemCol.type">
                                                <div ng-switch-when="click">
                                                    <a class="btn-operate m-r-xs"
                                                        ng-click="addTableInfo.tdClick(item, itemCol.clickFn)">
                                                        {{item[itemCol.dataField]}}
                                                    </a>
                                                </div>
                                                <div ng-switch-default class="spill-dots">
                                                    <span
                                                        ng-if="!item.isChecked || !itemCol.needInput">{{item[itemCol.dataField]}}</span>
                                                    <div class="td-edit pos-r"
                                                        ng-if="item.isChecked && itemCol.needInput">
                                                        <input type="text" class="form-control"
                                                            ng-model="item[itemCol.dataField]" yb-number-input
                                                            negative="true" max="99999999.99" disable-decimal="false"
                                                            decimal-places="2" ng-class="{'error': item.chpErr }"
                                                            ng-focus="showQtyTip(item)" ng-blur="hideQtyTip(item)"
                                                            ng-change="checkChp(item)">
                                                        <div class="pos-a tool-tips" ng-if="item.chpErrMsg">
                                                            <i class="triangle"></i>
                                                            <div class="msg" translate>已大于应收金额</div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="addTableInfo.dataList.length === 0" translate >
                            暂时没有数据
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 审核、详情 -->
        <div tab heading="{{tabFlagName}}" active="activeFlag[3]" ng-if="activeFlag[3] || sourceFlag === 3">
            <div class="pos-a-full shuttle-box left" style="right: 65%;top: 35px;">
                <div class="box-head clearfix">
                    <span class="font-14" translate>
                        收款信息
                    </span>
                </div>
                <div class="pos-a-full box-body has-head has-foot border-t">
                    <form name="checkForm" class="main-wrap form-horizontal form-up-tb p-t clearfix" novalidate>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>往来对象</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.purchaseOrgName || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>客户编码</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.dealerCode || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>结算方式</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{(detailObj.headerInfo.settleType | SettleType) || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"> <span translate>付款方式</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{(detailObj.headerInfo.payDesc) || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12" ng-if="isJCH">
                            <label class="col-xs-4 control-label"> <span translate>回款类别</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{(detailObj.headerInfo.reMoneyType|ReMoneyTypeF) || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>收款金额</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.totalPrice || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>优惠金额</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.discountPrice || "0"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>预收款扣减</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.advancePayPrice || "0"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12" ng-if="!isZHJCH">
                            <label class="col-xs-4 control-label"><span translate>车辆额度</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.useVehicleQuota || "0"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>实际收款金额</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.realPrice || "0"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>代理商</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.agentName || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>代表处</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.agency || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>产品组</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.productGroup || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>回款类型</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.collectionType || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>回款单位</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.collectionOrg || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>收款银行</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.receivingBank || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>退款金额</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.refundAmount || "0"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>sap外向交货单号</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.sapOutNoList&&detailObj.headerInfo.sapOutNoList.join(',')}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>经办人</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{detailObj.headerInfo.operatorName || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>打款时间</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{(detailObj.headerInfo.paymentDate | YbDate:"yyyy-MM-dd") || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12" ng-if="!isNY">
                            <label class="col-xs-4 control-label"><span translate>打款账号</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{(detailObj.headerInfo.paymentAccount) || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12" ng-if="!isNY">
                            <label class="col-xs-4 control-label"><span translate>打款银行</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{(detailObj.headerInfo.paymentBank) || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>制单时间</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                                {{(detailObj.headerInfo.createDate | YbDate:"yyyy-MM-dd HH:mm:ss") || "-"}}
                            </label>
                        </div>
                        <div class="form-group col-xs-12">
                            <label class="col-xs-4 control-label"><span translate>备注</span>：</label>
                            <label class="col-xs-8 control-label p-l-n text-left">
                                {{detailObj.headerInfo.note || "-"}}
                            </label>
                        </div>
                    </form>
                </div>
                <div class="bottom-area btn-bar text-center border-t clearfix" ng-if="isCheckFlag">
                    <button type="button" class="btn btn-primary m-r-sm"
                        ng-click="checkData(detailObj.headerInfo.id)" translate>通过</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)" translate>取消</button>
                </div>
            </div>
            <div class="pos-a-full shuttle-box right" style="left: 35%;top: 35px;bottom: 10px">
                <div class="box-head clearfix">
                    <span class="font-14" translate>
                        收款单据
                    </span>
                </div>
                <div class="pos-a-full box-body has-head border-t">
                    <div yb-table-fixed class="table-fixed-wrap" style="top: 15px;left: 0">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{detailTableInfo.tableConfig.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in detailTableInfo.tableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-show="!!itemCol.isShow">
                                            <div yb-thead-operate ng-model="itemCol"
                                                target-width="detailTableInfo.tableConfig.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="detailTableInfo.dataList.length > 0">
                            <table class="table-fixed border-none" width="{{detailTableInfo.tableConfig.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in detailTableInfo.dataList track by $index"
                                        ng-class="{'row-selected': $index === detailTableInfo.markInfo.curRow}"
                                        ng-click="detailTableInfo.selectRow($index)">
                                        <td class="spill-dots"
                                            ng-repeat="itemCol in detailTableInfo.tableConfig.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow"
                                            title="{{item[itemCol.dataField]}}">
                                            <div ng-switch="itemCol.type">
                                                <div ng-switch-when="click">
                                                    <a class="btn-operate m-r-xs"
                                                        ng-click="detailTableInfo.tdClick(item, itemCol.clickFn)">
                                                        {{item[itemCol.dataField]}}
                                                    </a>
                                                </div>
                                                <div ng-switch-default>
                                                    <span>{{item[itemCol.dataField]}}</span>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="detailTableInfo.dataList.length === 0" translate>
                            暂时没有数据
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div tab heading="单据详情" active="activeFlag[2]" ng-if="activeFlag[2]">
            <div class="main-area d-b-60" style="top:35px;">
                <div class="m-t-sm form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发货通知单号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.deliveryNo || '-'}}">
                            {{orderDetailObj.deliveryNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>客户名称</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.purchaseOrgName || '-'}}">
                            {{orderDetailObj.purchaseOrgName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>销售意向单</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.saleNo || '-'}}">
                            {{orderDetailObj.saleNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购单号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.purchaseNo || '-'}}">
                            {{orderDetailObj.purchaseNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>sap关联单号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.sapOutNo || '-'}}">
                            {{orderDetailObj.sapOutNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>SAP销售订单</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.sapSaleOrder || '-'}}">
                            {{orderDetailObj.sapSaleOrder || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>SAP外向发货单</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.sapOutBill || '-'}}">
                            {{orderDetailObj.sapOutBill || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>零件凭证</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.materialsNo || '-'}}">
                            {{orderDetailObj.materialsNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购级别</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{orderDetailObj.purchaseLevelName || '-'}}">
                            {{orderDetailObj.purchaseLevelName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>售达方</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.sold || '-'}}">
                            {{orderDetailObj.sold || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>送达方</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.delivery || '-'}}">
                            {{orderDetailObj.delivery || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>采购订单编号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{orderDetailObj.customerPurchaseCode || '-'}}">
                            {{orderDetailObj.customerPurchaseCode || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>分销渠道</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{orderDetailObj.distributionChannelName || '-'}}">
                            {{orderDetailObj.distributionChannelName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>付款条件</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{orderDetailObj.payConditionName || '-'}}">
                            {{orderDetailObj.payConditionName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>订单类型</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.orderType || '-'}}">
                            {{orderDetailObj.orderType || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发运方式</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{orderDetailObj.deliveryTypeName || '-'}}">
                            {{orderDetailObj.deliveryTypeName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>结算方式</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.settleTypeName || '-'}}">
                            {{orderDetailObj.settleTypeName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发出仓库</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.outLocation || '-'}}">
                            {{orderDetailObj.outLocation || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发出库区</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.outArea || '-'}}">
                            {{orderDetailObj.outArea || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.receiverName || '-'}}">
                            {{orderDetailObj.receiverName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>联系方式</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.receiverPhone || '-'}}">
                            {{orderDetailObj.receiverPhone || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>传真</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.receiverFax || '-'}}">
                            {{orderDetailObj.receiverFax || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.address || '-'}}">
                            {{orderDetailObj.address || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.note || '-'}}">
                            {{orderDetailObj.note || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.address|YbDate}}">
                            {{orderDetailObj.createDate|YbDate:"yyyy-MM-dd HH:mm:ss"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>是否打印</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.isPrint===0?'否':'是'}}">
                            {{orderDetailObj.isPrint===0?'否':'是'}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>总价</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots" title="{{orderDetailObj.totalDiscountPrice}}">
                            {{orderDetailObj.totalDiscountPrice}}
                        </div>
                    </div>
                </div>
                <div yb-table-fixed class="table-fixed-wrap" style="top:210px">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{orderDetailTableInfo.tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in orderDetailTableInfo.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="orderDetailTableInfo.tableConfig.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderDetailTableInfo.dataList.length > 0">
                        <table class="table-fixed border-none" width="{{orderDetailTableInfo.tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in orderDetailTableInfo.dataList track by $index">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in orderDetailTableInfo.tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span>{{item[itemCol.dataField]}}</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderDetailTableInfo.dataList.length === 0" translate>
                        暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default" ng-click="changeTab(sourceFlag)" translate>返回</button>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[4]" ng-if="activeFlag[4]">
            <div class="main-area d-b-60" style="top:40px;">
                <div class="m-t-sm form-up-tb clearfix">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库单号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.salesOutBillNo || '-'}}">
                            {{saleOutDetailInfo.headerInfo.salesOutBillNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>销售单号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.salesBillNo || '-'}}">
                            {{saleOutDetailInfo.headerInfo.salesBillNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>借用单号</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.borrowBillNo || '-'}}">
                            {{saleOutDetailInfo.headerInfo.borrowBillNo || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>客户名称</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.clientName || '-'}}">
                            {{saleOutDetailInfo.headerInfo.clientName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.generatePerson || '-'}}">
                            {{saleOutDetailInfo.headerInfo.generatePerson || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>制单时间</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.generateDateStr || '-'}}">
                            {{saleOutDetailInfo.headerInfo.generateDateStr || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>服务人员</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.servicePersonName || '-'}}">
                            {{saleOutDetailInfo.headerInfo.servicePersonName || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库状态</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.outboundStatusStr || '-'}}">
                            {{saleOutDetailInfo.headerInfo.outboundStatusStr || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>发出仓库</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.outArea || '-'}}">
                            {{saleOutDetailInfo.headerInfo.outArea || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货人</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.consignee || '-'}}">
                            {{saleOutDetailInfo.headerInfo.consignee || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>联系方式</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.contactPhone || '-'}}">
                            {{saleOutDetailInfo.headerInfo.contactPhone || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>收货地址</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.receiptAddress || '-'}}">
                            {{saleOutDetailInfo.headerInfo.receiptAddress || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>出库时间</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.outboundDateStr || '-'}}">
                            {{saleOutDetailInfo.headerInfo.outboundDateStr || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>结算状态</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.checkStateShow || '-'}}">
                            {{saleOutDetailInfo.headerInfo.checkStateShow || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>备注</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.remark || '-'}}">
                            {{saleOutDetailInfo.headerInfo.remark || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>总价</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.totalPrice || '-'}}">
                            {{saleOutDetailInfo.headerInfo.totalPrice || "-"}}
                        </div>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm" ng-if="!!costPriceShow">
                        <label class="col-xs-4 m-b-n text-right max-w-100"><span translate>成本总价</span>：</label>
                        <div class="col-xs-8 wrapper-none spill-dots"
                            title="{{saleOutDetailInfo.headerInfo.costTotal || '-'}}">
                            {{saleOutDetailInfo.headerInfo.costTotal || "-"}}
                        </div>
                    </div>
                </div>
                <div class="row wrapper-y-xs">
                    <div class="col-xs-12 operate-bar font-0">
                        <div class="pull-right m-r-xs" title="{{!btnPermission.showCostPrice?('无权限执行此操作'|translate):''}}">
                            <label class="font-12 m-r-xs"><span translate>显示成本价</span>:</label>
                            <toggle ng-model="costPriceShow" yb-disabled="!btnPermission.showCostPrice"></toggle>
                        </div>
                    </div>
                </div>
                <div yb-table-fixed class="table-fixed-wrap" ng-style="{'top': !!costPriceShow ? '190px' : '160px'}">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{saleOutTbConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in saleOutTbConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed && (itemCol.type !== 'cost' || !!costPriceShow)">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="purchaseTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="saleOutDetailInfo.materialList.length > 0">
                        <table class="table-fixed border-none" width="{{saleOutTbConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in saleOutDetailInfo.materialList track by $index">
                                    <td class="spill-dots"
                                        ng-repeat="itemCol in saleOutTbConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed  && (itemCol.type !== 'cost' || !!costPriceShow)"
                                        title="{{item[itemCol.dataField]}}">
                                        <span>{{item[itemCol.dataField]}}</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="saleOutDetailInfo.materialList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default" ng-click="goBack()" translate>返回</button>
            </div>
        </div>
    </div>
</div>